@import "../../config.scss";

.table-layout-container {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background-color: #fff;

  .table-card {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    padding-top: 8px;
  }
}

.table-layout-container .search-container {
  width: 100%;
  height: auto;
  margin-bottom: 8px;

  .search-action {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
  }

  .search-form {
    opacity: 1;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    padding: 16px;
    background-color: rgba($color: #000000, $alpha: 0.04);
    margin-top: 8px;
    transition: all 0.3s;

    .ant-form-item {
      width: auto;
      height: 28px;
      margin-bottom: 8px;

      .ant-form-item-row,
      .ant-space,
      .ant-space .ant-space-item,
      .ant-form-item-control-input,
      .ant-form-item-control-input-content {
        height: 100%;
      }

      .ant-form-item-label {
        display: flex;
        width: 72px;
        height: 100%;
        flex: unset;
        max-width: unset;
        padding: 0 8px 0 0;
        align-items: center;

        & > label {
          display: block;
          width: 100%;
          height: auto;
          text-align: justify;
          text-align-last: justify;

          &::after {
            all: unset;
          }
        }
      }

      .ant-form-item-control {
        flex: unset;
        height: 100%;
        width: auto;

        .ant-form-item-control-input {
          min-height: unset;
        }

        .ant-picker,
        .ant-input,
        .ant-input-affix-wrapper {
          height: 100%;
          padding: 2px 8px;
        }

        .ant-btn {
          height: 100%;
          padding: 2px 12px;
        }
      }
    }
  }

  .search-form[data-collapse="false"] {
    opacity: 0;
    max-height: 0px;
    padding: 0px 16px;
    margin-top: 0px;
  }
}

.table-layout-container .operate-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
